programming4us
           
 
 
SQL Server

Setting Up a Full-Text Index (part 3) - Diagnostics

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
12/18/2010 5:26:56 PM
Diagnostics

After you create catalogs and indexes, you occasionally need to get information about your catalogs, tables, and indexes. So that you can do this, Microsoft has supplied the sp_help_fulltext_tables and sp_help_fulltext_columns stored procedures and the system view sys.fulltext_catalogs.

These stored procedures and view allow you to examine the state of your full-text tables, columns, and catalogs. Microsoft recommends that rather than using these objects, you use the OBJECTPROPERTY, COLUMNPROPERTY, and FULLTEXTCATALOGPROPERTY metadata functions. Table 1 lists the full-text index properties for the OBJECTPROPERTY function.

Table 1. Full-Text Index Properties for the OBJECTPROPERTY
PropertyDescriptionValues
TableFullTextBackgroundUpdateIndexOnIndicates whether change1 = true and 0 = false tracking is enabled.
TableFulltextCatalogIdReturns the catalog ID of the catalog the full-text index is placed on.CatalogID or 0 (table not indexed)
TableFulltextChangeTrackingOnEnables change tracking.1 = true and 0 = false
TableFulltextDocsProcessedReturns the number of rows processed since indexing started. 
TableFulltextFailCountReturns the number of rows that failed to index. 
TableFulltextItemCountReturns the number of rows successfully indexed. 
TableFulltextKeyColumnReturns the ID of the key index used by SQL Server FTS (normally the primary key). 
TableFulltextPendingChangesReturns the number of rows outstanding to be indexed. 
TableFulltextPopulateStatusReturns a number indicating the state of the population.1 = full population is in progress; 2 = incremental population is in progress; 3 = propagation of tracked changes is in progress; 45 = full-text indexing is throttled or paused = background update index is in progress, such as autochange tracking; and
TableHasActiveFulltextIndexIndicates whether a table has an active full-text index on it.1 = true and 0 = false

Table 2 lists the full-text index properties for the COLUMNPROPERTY function.

Table 2. Full-Text Index Properties for the COLUMNPROPERTY Function
PropertyDescriptionValues
IsFulltextIndexedIndicates whether a column is full-text indexed.1 = true and 0 = false
FullTextTypeColumnReturns the ID of the document type column. 

Table 3 lists the properties for the FULLTEXTCATALOGPROPERTY function.

Table 3. Properties for the FULLTEXTCATALOGPROPERTY
PropertyDescriptionValues
AccentSensitivityIndicates whether the catalog is accent sensitive.1 = true and 0 = false
IndexSizeReturns the size of the full-text catalog. 
ItemCountReturns the number of items (rows) indexed in the catalog. 
MergeStatusIndicates whether a master merge is in progress.1 = true and 0 = false
PopulateCompletionAgeSpecifies how long ago the last population completed. 
PopulateStatusReturns the status of the population.0 = idle, 1 = full population in progress, 2 = paused, 3 = throttled, 4 = recovering, 5 = shut down, 6 = incremental population in progress, 7 = building index, 8 = disk is full, paused, and 9 = change tracking
UniqueKeyCountReturns the number of unique words indexed. 
ResourceUsageReturns a number indicating how aggressively SQL Server FTS is consolidating the catalog.Ranges from 1 to 5 (the most aggressive); 3 is the default.
IsFulltextInstalledIndicates whether SQL Server FTS is installed.1 = true and 0 = false
LoadOSResourcesIndicates whether third-party word breakers are loaded.1 = true and 0 = false
VerifySignatureDetermines whether signatures of word breakers and language resources are checked.1 = true and 0 = false

The following examples show how to query metadata functions using the full-text index properties:

SELECT OBJECTPROPERTY(object_id('Person.Contact'),
'TableFullTextBackgroundUpdateIndexOn')
select objectproperty(object_id('Person.Contact'),'TableFulltextChangeTrackingOn')
SELECT OBJECTPROPERTY(object_id('Person.Contact'),'TableFulltextKeyColumn')
SELECT OBJECTPROPERTY(object_id('Person.Contact'),'TableFulltextPendingChanges')
SELECT OBJECTPROPERTY(object_id('Person.Contact'),'TableFulltextPopulateStatus')
SELECT OBJECTPROPERTY(object_id('Person.Contact'),'TableHasActiveFulltextIndex')
SELECT COLUMNPROPERTY ( object_id('Person.Contact'),
'charcol' , 'IsFulltextIndexed' )
SELECT COLUMNPROPERTY ( object_id('Person.Contact'),
'VarbinaryColumn','FullTextTypeColumn' )

SELECT FULLTEXTCATALOGPROPERTY('MyCatalog','indexsize')
SELECT FULLTEXTCATALOGPROPERTY('MyCatalog','itemcount')
SELECT FULLTEXTCATALOGPROPERTY('MyCatalog','mergestatus')
SELECT FULLTEXTCATALOGPROPERTY('MyCatalog','populatecompletionage')
SELECT FULLTEXTCATALOGPROPERTY('MyCatalog','populatestatus')
SELECT FULLTEXTSERVICEPROPERTY('loadosresources')

Other -----------------
- Implementing SQL Server 2008 Full-Text Catalogs
- How SQL Server FTS Works
- SQL Azure : Connecting to a SQL Azure Database (part 2) - Connecting from the Entity Framework
- SQL Azure : Connecting to a SQL Azure Database (part 1) - Connecting Using ADO.NET
- SQL Azure : Creating Databases, Logins, and Users (part 2)
- SQL Azure : Creating Databases, Logins, and Users (part 1)
- SQL Azure : Azure Server Administration (part 3) - Databases
- SQL Azure : Azure Server Administration (part 2) - Firewall Settings
- SQL Azure : Azure Server Administration (part 1) - Server Information
- SQL Azure : Managing Your Azure Projects
- SQL Azure : Creating Your Azure Account
- An OLAP Requirements Example: CompSales International (part 16) - Security and Roles
- An OLAP Requirements Example: CompSales International (part 15) - SSIS
- An OLAP Requirements Example: CompSales International (part 14) - Data Mining
- An OLAP Requirements Example: CompSales International (part 13) - Cube Perspectives
- An OLAP Requirements Example: CompSales International (part 12) - Generating a Relational Database
- An OLAP Requirements Example: CompSales International (part 11)
- An OLAP Requirements Example: CompSales International (part 10)
- An OLAP Requirements Example: CompSales International (part 9) - Browsing Data in the Cube
- An OLAP Requirements Example: CompSales International (part 8) - Aggregating Data Within the Cube
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us